<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="theme-color">
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>分享家</title>
    <link rel="stylesheet" type="text/css" href="../lib/css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../lib/css/mui.css"/>
    <link rel="stylesheet" href="../css/util.css">
    <script src="http://at.alicdn.com/t/font_371407_7omis3wrfr7tx1or.js"></script>
</head>
<link rel="stylesheet" href="../css/log_in.css">
<body>

<main id="main">
    <div class="banner">
       <span class="back" onclick="history.back()">
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-jiantou"></use>
            </svg>
       </span>
        <img src="../image/login_pic.jpg">
    </div>

    <section id="form">
        <p style="font-size: 10px">未注册的用户，请使用手机、验证码快速登录。</p>
        <label for="tel" class="tel-ipt">
            <span class="line"><span v-cloak>{{!usePwdLogin?'手机登录':'账户登录'}}</span> <a @click="switchPwdOrAuthCode"
                                                                                      v-text="usePwdLogin?'切换到快速登录':'切换到密码登录'"></a></span>
            <input id="tel" name="tel" type="text" :placeholder="!usePwdLogin?'手机号码':'手机号码 / 用户名'" v-model="reqData.tel"
                   @keyup="keyup">
        </label>
        <label v-cloak v-show="usePwdLogin" for="pwd" class="tel-ipt">
            <span>密码</span>
            <input id="pwd" name="pwd" type="password" placeholder="请输入密码" v-model="reqData.pwd">
        </label>
        <div v-show="!usePwdLogin" class="auth-code-container">
            <label for="authCode" class="auth-code-ipt">
                <span>验证码</span>
                <span class="auth-code">
                <input id="authCode" class="mui-input-password" type="number" placeholder="输入验证码"
                       v-model="reqData.code">
            </span>
            </label>
            <span></span>
            <a class="auth-code-btn disable" v-text="getAuthCodeText" @click="getAuthCode"></a>
        </div>
        <button type="button" class="mui-btn mui-btn-success mui-btn-block" @click="submit">登录</button>

        <div class="log-up">
            <a v-show="usePwdLogin" v-cloak>忘记密码?</a>
        </div>

        <!--<div class="oauth">
            <svg id="wxLogin" class="icon i-wx" aria-hidden="true">
                <use xlink:href="#icon-wechat-c-o"></use>
            </svg>
            <svg id="qqLogin" class="icon i-qq" aria-hidden="true">
                <use xlink:href="#icon-qq-c-o"></use>
            </svg>
            <svg id="wbLogin" class="icon i-wb" aria-hidden="true">
                <use xlink:href="#icon-weibo-c-o"></use>
            </svg>
        </div>-->

    </section>
</main>

<script type="text/javascript" src="../lib/js/babel-polyfill.js"></script>
<script type="text/javascript" src="../lib/js/vue.js"></script>
<script type="text/javascript" src="../lib/js/mui.js"></script>
<script type="text/javascript" src="../lib/js/jquery.js"></script>
<script type="text/javascript" src="../script/util.js"></script>

<script src="../script/log_in.js"></script>
</body>
</html>